package com.zxl.always.on.display.track;

import android.content.Context;

/**
 * Created by Administrator on 2018/1/2.
 */

public enum StatisticsType {

    /**
     * 积分墙
     */
    ADS_OFFER("ads_offer"),

    /**
     * 试试手气广告
     */
    ADS_SHUFFLE("ads_shuffle"),

    /**
     * 主页顶部广告
     */
    ADS_RECOMMEND("ads_recommend"),

    /**
     * 伪全屏广告
     */
    ADS_FULL_SCREEN("ads_full_screen"),

    /**
     * 键盘广告
     */
    ADS_KEY_BOARD("ads_key_board"),

    /**
     * 小米banner广告
     */
    ADS_XM_BANNER("ads_xm_banner"),

    SETTINGS("settings");

    private String name;

    StatisticsType(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void upload(Context context, String key, String value) {
        MobclickAgentHelper.onEvent(context, name, key, value);
    }

}
